Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Replace.php #132

Merged
merged 1 commit into from Jun 6, 2019
Merged

Update Replace.php #132

merged 1 commit into from Jun 6, 2019

Conversation

DevIntact
Copy link
Contributor

I have noticed a repetitive warning in the www error log.
The warning is kind like the following :

[15-May-2019 07:43:47 UTC] Erreur de la base de données WordPress 

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 

'WHERE object_id = "30"' at line 1 pour la requête UPDATE wp_217_yoast_seo_meta SET  WHERE object_id = "30" faite par 

require_once('wp-admin/admin.php'), 
do_action('toplevel_page_onpc-live'), 
WP_Hook->do_action, 
WP_Hook->apply_filters, 
call_user_func_array, 
ONPC_Live->onpc_live, 
Inpsyde\SearchReplace\Database\Replace->run_search_replace
Inpsyde\SearchReplace\Database\Replace->replace_values
Inpsyde\SearchReplace\Database\Manager->update

In this case it is a table relative to YOAST Seo and so there is nothing to update, so the variable $update_sql is empty

I have noticed a repetitive warning in the www error log.
The warning is kind like the following : 

```
[15-May-2019 07:43:47 UTC] Erreur de la base de données WordPress 

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 

'WHERE object_id = "30"' at line 1 pour la requête UPDATE wp_217_yoast_seo_meta SET  WHERE object_id = "30" faite par 

require_once('wp-admin/admin.php'), 
do_action('toplevel_page_onpc-live'), 
WP_Hook->do_action, 
WP_Hook->apply_filters, 
call_user_func_array, 
ONPC_Live->onpc_live, 
Inpsyde\SearchReplace\Database\Replace->run_search_replace
Inpsyde\SearchReplace\Database\Replace->replace_values
Inpsyde\SearchReplace\Database\Manager->update
```

In this case it is a table relative to YOAST Seo and so there is nothing to update, so the variable $update_sql is empty
@bueltge
Copy link
Contributor

bueltge commented Jun 5, 2019

Thanks a lot! ❤️
However please add a space after the ! for the current WP codex, that's all and I will merge them.

@bueltge bueltge self-requested a review June 5, 2019 08:14
@bueltge bueltge merged commit 4556b15 into wp-media:master Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants